/**
 * 
 */
package com.study.jbm.calculate;

/**
 * 加法运算实现类
 *
 * @author Mong
 * @data 2012-9-20
 */
public class AddCalculator implements Calculator {

	@Override
	public int calc(int... a) {
		int sum = 0;
		for(int i : a) {
			sum += i;
		}
		return sum;
	}
	
}
